<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关工委网站管理后台</title>
        <!--                       CSS                       --><!-- Reset Stylesheet -->
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <!-- Main Stylesheet -->
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../js-plugin/uploadify/uploadify.css" type="text/css" media="screen" />
        <!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
        <link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
        <link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <!--                       Javascripts                       --><!-- jQuery -->
        <script type="text/javascript" src="../js-plugin/jquery-1.6.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <!-- jQuery Configuration -->
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.query-2.1.7.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.form.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.validate.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/additional-methods.min.js">
        </script>
        <!-- SWF UPLOAD -->
        <script type="text/javascript" src="../js-plugin/uploadify/jquery.uploadify.v2.1.4.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/uploadify/swfobject.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/AdsEdit.js">
        </script>
        <style>
            form .error {
                background: none;
                color: #FF3300;
            }
        </style>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content">
            <div class="content-box">
                <!-- Start Content Box -->
                <div class="content-box-header">
                    <h3>编辑广告信息</h3>
                    <a class="button align-right20 button_fix saveBtn" href="#">保存广告信息 </a>
                    <div class="clear">
                    </div>
                </div>
                <!-- End .content-box-header -->
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <!-- This is the target div. id must match the href of this div's tab -->
                        <div class="notification attention png_bg post-state" style="display:none">
                            <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                            <div id="errormsg">
                                错误信息
                            </div>
                        </div>
                        <form id="adsEditor" action="/action/master/adsSave" method="post">
                            <p>
                                <label>
                                    广告名称
                                </label>
                                <input class="text-input large-input" type="text" id="name" name="name" value="${(ads.name)!}" /><input type="hidden" id="id" name="id" value="${(ads.id?c)!}" /><input type="hidden" id="midea" name="midea" value="${(ads.midea)!}" />
                            </p>
                            <p>
                                <label>
                                    链接地址
                                </label>
                                <input class="text-input large-input" type="text" id="url" name="url" value="${(ads.url)!}" />
                            </p>
                            <p>
                                <label class="inline">
                                    开始时间
                                </label>
                                <input class="text-input small-input" type="text" id="startdate" name="startdate" value="${(ads.startdate?date)!}" />
                                <label class="inline">
                                    结束时间
                                </label>
                                <input class="text-input small-input" type="text" id="enddate" name="enddate" value="${(ads.enddate?date)!}" />
                            </p><input type="hidden" id="files" name="files" value="${(ads.files)!}" />
                        </form>
                    </div><!-- End #tab1 -->
                </div><!-- End .content-box-content -->
            </div>
            <div class="content-box">
                <!-- Start Content Box -->
                <div class="content-box-header">
                    <h3>广告预览</h3>
                    <div class="bulk-actions align-right20">
                        <input id="ads_file" name="file_upload" type="file" style="display:none;"/>
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <!-- End .content-box-header -->
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <!-- This is the target div. id must match the href of this div's tab -->
                        <div class="notification2 attention png_bg information">
                            <div>
                                提示：该处仅为广告图片和Flash的演示效果，所以在尺寸上与首页中实际尺寸有所不同
                            </div>
                        </div>
                        <div id="status-message">
                        </div>
                        <div id="custom-queue">
                        </div>
                        <div id="view_body">
                            <#if (ads.files)?exists><#if (ads.midea)! == ".swf">
                            <div id="ads_view">
                            </div>
                            <script type="text/javascript">
                                var params = {
                                    scale: "exactFit"
                                };
                                swfobject.embedSWF("${(ads.files)!}", "ads_view", "100%", "100", "9.0.115", "../js-plugin/uploadify/expressInstall.swf", "", params);
                            </script>
                            <#else><img src="${(ads.files)!}" width="100%" height="100px" /></#if></#if>
                        </div>
                    </div><!-- End #tab1 -->
                </div><!-- End .content-box-content -->
            </div>
        </div>
        </div>
    </body>
</html>
